<html>
<head><meta charset="utf-8"><title>Run `tidy` locally · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20.60tidy.60.20locally.html">Run `tidy` locally</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="178516093"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20%60tidy%60%20locally/near/178516093" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dylan MacKenzie (ecstatic-morse) <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20.60tidy.60.20locally.html#178516093">(Oct 18 2019 at 22:48)</a>:</h4>
<p>Dumb question: I know I can run tidy locally with <code>./x.py test src/tools/tidy</code>, but this outputs hundreds of errors across the codebase. CI only outputs the errors on lines that have changed in a PR. How do I replicate that locally?</p>



<a name="178518499"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20%60tidy%60%20locally/near/178518499" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Zoxc <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20.60tidy.60.20locally.html#178518499">(Oct 18 2019 at 23:38)</a>:</h4>
<p>Do you have extra files locally?</p>



<a name="178520829"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Run%20%60tidy%60%20locally/near/178520829" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dylan MacKenzie (ecstatic-morse) <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Run.20.60tidy.60.20locally.html#178520829">(Oct 19 2019 at 00:32)</a>:</h4>
<p>That's embarrassing. Upon closer inspection all the errors were from a single project that had been erroneously copied into <code>src</code>.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>